home *** CD-ROM | disk | FTP | other *** search
Wrap
;-------------------------------------------------------------------------------------------------- ; Installation script for PicShow ; $VER: install 1.3 (25.10.02) ;-------------------------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------------------------- ; English texts (default) ;-------------------------------------------------------------------------------------------------- (set #welcome-msg (cat "\nWelcome to the installation of " @app-name)) (set #which-version "Please choose the processor version of PicShow that should be installed.") (set #where-picshow "Where should the PicShow main programm be copied to ?") (set #where-tools "Where should the additional tools be copied to ?") (set #where-help "Where should the help files be copied to ?") (set #where-prefs "Where should the skin and settings files be copied to ?") (set #where-cat "Where should the language catalog files be copied to ?") (set #where-trans "Where should the translation files be copied to ?\nThese are only needed if you want to create your own language catalog.") (set #copy-main "Copying PicShow main program") (set #copy-tools "Copying additional tools") (set #copy-help "Which help files should be copied ?") (set #copy-prefs "Copying skin and settings files") (set #copy-cat "Which languages should be installed ?") (set #copy-trans "Which translation files should be installed ?\nThese are only needed if you want to create your own language catalog.") (set #proceed "Proceed") (set #skip "Skip this part") ;-------------------------------------------------------------------------------------------------- ; German texts ;-------------------------------------------------------------------------------------------------- (if (= @language "deutsch") ( (set #welcome-msg (cat "\nWillkommen zur Installation von " @app-name)) (set #which-version "Bitte wählen Sie die Prozessor-Version von PicShow, die installiert werden soll.") (set #where-picshow "Wo soll das PicShow Hauptprogramm installiert werden ?") (set #where-tools "Wo sollen die zusätzlichen Programme installiert werden ?") (set #where-help "Wo sollen die Hilfe-Dateien installiert werden ?") (set #where-prefs "Wo sollen die Skin- und Einstellungsdateien installiert werden ?") (set #where-cat "Wo sollen die Sprachkataloge installiert werden ?") (set #where-trans "Wo sollen die Übersetzungsdateien installiert werden ?\nDiese werden nur benötigt, wenn Sie einen eigenen Sprach-Katalog erzeugen möchten.") (set #copy-main "Kopiere das PicShow Hauptprogramm") (set #copy-tools "Kopiere zusätzliche Programme") (set #copy-help "Welche Hilfe-Dateien sollen kopiert werden ?") (set #copy-prefs "Kopiere Skin- und Einstellungsdateien") (set #copy-cat "Welche Sprachen sollen installiert werden ?") (set #copy-cat "Welche Übersetzungsdateien sollen installiert werden ?\nDiese werden nur benötigt, wenn Sie einen eigenen Sprach-Katalog erzeugen möchten.") (set #proceed "Weiter mit Kopieren") (set #skip "Diesen Teil überspringen") ) ) ;-------------------------------------------------------------------------------------------------- ; Spanish texts ;-------------------------------------------------------------------------------------------------- (if (= @language "español") ( (set #welcome-msg "") (set #which-version "Por favor, elija la versión de PicShow que desea instalar.") (set #where-picshow "¿Dónde desea copiar el programa PicShow?") (set #where-tools "¿Dónde desea copiar las herramientas adicionales?") (set #where-help "¿Dónde desea copiar la documentación?") (set #where-prefs "¿Donde desea copiar el panel de navegación y la definición de teclas?") (set #where-cat "¿Dónde desea copiar los catálogos?") (set #where-trans "¿Dónde desea copiar los códigos fuente de catálogos?\nSolo útil si desea crear su propio catálogo.") (set #copy-main "Copiar el programa PicShow.") (set #copy-tools "Copiar las herramientas adicionales.") (set #copy-help "Elija documentaciones a copiar.") (set #copy-prefs "Copiar panel de navegación y definición de teclas.") (set #copy-cat "Elija idiomas de catálogos a copiar.") (set #copy-trans "Elija códigos fuente de catálagos a copiar.\nSolo útil si desea crear su propio catálogo.") (set #proceed "Proceder") (set #skip "Saltar esta parte") ) ) ;-------------------------------------------------------------------------------------------------- ; Texte français ;-------------------------------------------------------------------------------------------------- (if (= @language "français") ( (set #welcome-msg (cat "\nBienvenue - installation de " @app-name)) (set #which-version "Choisissez la version de Picshow à installer, adaptée à votre processeur.") (set #where-picshow "Où doit être copié le programme Picshow ?") (set #where-tools "Où doivent être copiés les outils optionnels ?") (set #where-help "Où doivent être copiés les fichiers d'aide ?") (set #where-prefs "Où doivent être copiés le skin et les fichiers de préférences ?") (set #where-cat "Où doit être copié le catalogue ?") (set #where-trans "Où doit être copié le fichier de traduction ?\nNécessaire si vous voulez créer votre propre catalogue.") (set #copy-main "Copie du programme Picshow") (set #copy-tools "Copie des outils optionnels") (set #copy-help "Quel fichier d'aide voulez-vous copier ?") (set #copy-prefs "Copie du skin et fichiers de préférences") (set #copy-cat "Quel langage voulez-vous installer ?") (set #copy-trans "Quel fichier de traduction voulez-vous installer ?\nNécessaire si vous voulez créer votre propre catalogue.") (set #proceed "Continuer") (set #skip "Passer cette partie") ) ) ;-------------------------------------------------------------------------------------------------- ; Installation ;-------------------------------------------------------------------------------------------------- (if (>= (/ @installer-version 65536) 44) ( (showmedia "PicShow" "PicShow.jpg" "center" "none" 0) ) ) (welcome #welcome-msg) ;------------------------------------------------ ; Get CPU version ;------------------------------------------------ (set @default-dest "Sys:Utilities") (if (exists "Libs:powerpc.library" (noreq)) (set #cpun 3) (if (exists "Libs:ppc.library" (noreq)) (set #cpun 2) (if (>= (database "cpu") "68040") (set #cpun 1) (set #cpun 0) ) ) ) (select (askchoice (prompt #which-version) (help @askchoice-help) (choices "68000" "68040" "PowerUp" "WarpOS") (default #cpun)) ( (set #mainsrc "PicShow") (set #maindest "PicShow") ) ( (set #mainsrc "PicShow.040") (set #maindest "PicShow") ) ( (set #mainsrc "PicShow.elf") (set #maindest "PicShow.elf") ) ( (set #mainsrc "PicShow.wos") (set #maindest "PicShow") ) ) ;------------------------------------------------ ; Get destination directories ;------------------------------------------------ (set #main-dest (askdir (prompt #where-picshow)(help @askdir-help) (default @default-dest))) (set #tool-dest (askdir (prompt #where-tools) (help @askdir-help) (default "Sys:Tools"))) (set #help-dest (askdir (prompt #where-help) (help @askdir-help) (default "Help:"))) (set #prefs-dest (askdir (prompt #where-prefs) (help @askdir-help) (default #main-dest))) (set #cat-dest (askdir (prompt #where-cat) (help @askdir-help) (default "Locale:Catalogs"))) (set #trans-dest (askdir (prompt #where-trans) (help @askdir-help) (default "RAM:"))) ;------------------------------------------------ ; Copy files ;------------------------------------------------ (set @default-dest #main-dest) (if (if (= @user-level 2) (askbool (prompt #copy-main) (help @askbool-help) (choices #proceed #skip) (default 1)) 1) ( (copyfiles (source #mainsrc) (dest #main-dest) (newname #maindest)) (set #mainicon (cat #maindest ".info")) (if (not (exists (tackon #main-dest #mainicon))) (copyfiles (source "PicShow.info") (dest #main-dest) (newname #mainicon) (noposition)) ) ) ) (copyfiles (prompt #copy-tools) (help @copyfiles-help) (confirm "expert") (source "") (pattern "(JoinPictures|PicShowTem)") (infos) (noposition) (dest #tool-dest)) (copyfiles (prompt #copy-help) (help @copyfiles-help) (confirm "average") (source "") (pattern "PicShow_??.guide") (infos) (noposition) (dest #help-dest)) (copyfiles (prompt #copy-prefs) (help @copyfiles-help) (confirm "expert") (source "") (pattern "(PicShowNav.iff|PicShow.keys)") (infos) (noposition) (dest #prefs-dest)) (copyfiles (prompt #copy-cat) (help @copyfiles-help) (confirm "average") (source "catalogs") (pattern "#?") (dest #cat-dest)) (if (> @user-level 0) (copyfiles (prompt #copy-trans) (help @copyfiles-help) (confirm "average") (source "translations") (pattern "#?") (dest #trans-dest)) ) ;-------------------------------------------------------------------------------------------------- ; End of script ;--------------------------------------------------------------------------------------------------